package com.meixiang.entity.account;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author：wangzuzhen on 2016/5/28 0028 15:59.
 */
public class AddressListEntity implements Parcelable {

    /**
     * "addressId": "1",
     * "areaInfo": "北京,北京市,西城区",
     * "trueName": "常**",
     * "address": "四平路421弄3号",
     * "mobPhone": "1386****",
     * "isDefault": "0"
     */

    private String addressId;
    private String areaInfo;
    private String trueName;
    private String address;
    private String mobPhone;
    private String isDefault;

    public AddressListEntity() {
    }

    public AddressListEntity(String addressId, String areaInfo, String trueName, String address, String mobPhone, String isDefault) {
        this.addressId = addressId;
        this.areaInfo = areaInfo;
        this.trueName = trueName;
        this.address = address;
        this.mobPhone = mobPhone;
        this.isDefault = isDefault;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public String getAreaInfo() {
        return areaInfo;
    }

    public void setAreaInfo(String areaInfo) {
        this.areaInfo = areaInfo;
    }

    public String getTrueName() {
        return trueName;
    }

    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getMobPhone() {
        return mobPhone;
    }

    public void setMobPhone(String mobPhone) {
        this.mobPhone = mobPhone;
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    @Override
    public String toString() {
        return "AddressListEntity{" +
                "addressId='" + addressId + '\'' +
                ", areaInfo='" + areaInfo + '\'' +
                ", trueName='" + trueName + '\'' +
                ", address='" + address + '\'' +
                ", mobPhone='" + mobPhone + '\'' +
                ", isDefault='" + isDefault + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.addressId);
        dest.writeString(this.areaInfo);
        dest.writeString(this.trueName);
        dest.writeString(this.address);
        dest.writeString(this.mobPhone);
        dest.writeString(this.isDefault);
    }

    protected AddressListEntity(Parcel in) {
        this.addressId = in.readString();
        this.areaInfo = in.readString();
        this.trueName = in.readString();
        this.address = in.readString();
        this.mobPhone = in.readString();
        this.isDefault = in.readString();
    }

    public static final Parcelable.Creator<AddressListEntity> CREATOR = new Parcelable.Creator<AddressListEntity>() {
        @Override
        public AddressListEntity createFromParcel(Parcel source) {
            return new AddressListEntity(source);
        }

        @Override
        public AddressListEntity[] newArray(int size) {
            return new AddressListEntity[size];
        }
    };
}
